package com.example.springboot_demo.mappers;


import com.example.springboot_demo.pojo.PreOrderInfo;
import com.example.springboot_demo.pojo.countBean;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface PreOrderInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PreOrderInfo record);

    int insertSelective(PreOrderInfo record);

    PreOrderInfo selectByOrderSn(String sn);

    int updateByPrimaryKeySelective(PreOrderInfo record);

    int updateByPrimaryKey(PreOrderInfo record);

    List<countBean> get7DaysNum(@Param("storeId")String storeId, @Param("startDay") String startDay,@Param("endDay") String endDay);
}